package com.pgybook.db.entity.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PenaltyHistoryEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PenaltyHistoryEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPenaltyhisidIsNull() {
            addCriterion("PENALTYHISID is null");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidIsNotNull() {
            addCriterion("PENALTYHISID is not null");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidEqualTo(Long value) {
            addCriterion("PENALTYHISID =", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidNotEqualTo(Long value) {
            addCriterion("PENALTYHISID <>", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidGreaterThan(Long value) {
            addCriterion("PENALTYHISID >", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidGreaterThanOrEqualTo(Long value) {
            addCriterion("PENALTYHISID >=", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidLessThan(Long value) {
            addCriterion("PENALTYHISID <", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidLessThanOrEqualTo(Long value) {
            addCriterion("PENALTYHISID <=", value, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidIn(List<Long> values) {
            addCriterion("PENALTYHISID in", values, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidNotIn(List<Long> values) {
            addCriterion("PENALTYHISID not in", values, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidBetween(Long value1, Long value2) {
            addCriterion("PENALTYHISID between", value1, value2, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andPenaltyhisidNotBetween(Long value1, Long value2) {
            addCriterion("PENALTYHISID not between", value1, value2, "penaltyhisid");
            return (Criteria) this;
        }

        public Criteria andInstanceidIsNull() {
            addCriterion("INSTANCEID is null");
            return (Criteria) this;
        }

        public Criteria andInstanceidIsNotNull() {
            addCriterion("INSTANCEID is not null");
            return (Criteria) this;
        }

        public Criteria andInstanceidEqualTo(Long value) {
            addCriterion("INSTANCEID =", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotEqualTo(Long value) {
            addCriterion("INSTANCEID <>", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidGreaterThan(Long value) {
            addCriterion("INSTANCEID >", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidGreaterThanOrEqualTo(Long value) {
            addCriterion("INSTANCEID >=", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidLessThan(Long value) {
            addCriterion("INSTANCEID <", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidLessThanOrEqualTo(Long value) {
            addCriterion("INSTANCEID <=", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidIn(List<Long> values) {
            addCriterion("INSTANCEID in", values, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotIn(List<Long> values) {
            addCriterion("INSTANCEID not in", values, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidBetween(Long value1, Long value2) {
            addCriterion("INSTANCEID between", value1, value2, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotBetween(Long value1, Long value2) {
            addCriterion("INSTANCEID not between", value1, value2, "instanceid");
            return (Criteria) this;
        }

        public Criteria andCustidIsNull() {
            addCriterion("CUSTID is null");
            return (Criteria) this;
        }

        public Criteria andCustidIsNotNull() {
            addCriterion("CUSTID is not null");
            return (Criteria) this;
        }

        public Criteria andCustidEqualTo(Long value) {
            addCriterion("CUSTID =", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotEqualTo(Long value) {
            addCriterion("CUSTID <>", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThan(Long value) {
            addCriterion("CUSTID >", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidGreaterThanOrEqualTo(Long value) {
            addCriterion("CUSTID >=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThan(Long value) {
            addCriterion("CUSTID <", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidLessThanOrEqualTo(Long value) {
            addCriterion("CUSTID <=", value, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidIn(List<Long> values) {
            addCriterion("CUSTID in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotIn(List<Long> values) {
            addCriterion("CUSTID not in", values, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidBetween(Long value1, Long value2) {
            addCriterion("CUSTID between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andCustidNotBetween(Long value1, Long value2) {
            addCriterion("CUSTID not between", value1, value2, "custid");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeIsNull() {
            addCriterion("PENALTYTYPE is null");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeIsNotNull() {
            addCriterion("PENALTYTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeEqualTo(Integer value) {
            addCriterion("PENALTYTYPE =", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeNotEqualTo(Integer value) {
            addCriterion("PENALTYTYPE <>", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeGreaterThan(Integer value) {
            addCriterion("PENALTYTYPE >", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("PENALTYTYPE >=", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeLessThan(Integer value) {
            addCriterion("PENALTYTYPE <", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeLessThanOrEqualTo(Integer value) {
            addCriterion("PENALTYTYPE <=", value, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeIn(List<Integer> values) {
            addCriterion("PENALTYTYPE in", values, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeNotIn(List<Integer> values) {
            addCriterion("PENALTYTYPE not in", values, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeBetween(Integer value1, Integer value2) {
            addCriterion("PENALTYTYPE between", value1, value2, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenaltytypeNotBetween(Integer value1, Integer value2) {
            addCriterion("PENALTYTYPE not between", value1, value2, "penaltytype");
            return (Criteria) this;
        }

        public Criteria andPenalamtIsNull() {
            addCriterion("PENALAMT is null");
            return (Criteria) this;
        }

        public Criteria andPenalamtIsNotNull() {
            addCriterion("PENALAMT is not null");
            return (Criteria) this;
        }

        public Criteria andPenalamtEqualTo(BigDecimal value) {
            addCriterion("PENALAMT =", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtNotEqualTo(BigDecimal value) {
            addCriterion("PENALAMT <>", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtGreaterThan(BigDecimal value) {
            addCriterion("PENALAMT >", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("PENALAMT >=", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtLessThan(BigDecimal value) {
            addCriterion("PENALAMT <", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtLessThanOrEqualTo(BigDecimal value) {
            addCriterion("PENALAMT <=", value, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtIn(List<BigDecimal> values) {
            addCriterion("PENALAMT in", values, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtNotIn(List<BigDecimal> values) {
            addCriterion("PENALAMT not in", values, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PENALAMT between", value1, value2, "penalamt");
            return (Criteria) this;
        }

        public Criteria andPenalamtNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PENALAMT not between", value1, value2, "penalamt");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeIsNull() {
            addCriterion("BORWSTARTTIME is null");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeIsNotNull() {
            addCriterion("BORWSTARTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeEqualTo(Date value) {
            addCriterion("BORWSTARTTIME =", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeNotEqualTo(Date value) {
            addCriterion("BORWSTARTTIME <>", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeGreaterThan(Date value) {
            addCriterion("BORWSTARTTIME >", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("BORWSTARTTIME >=", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeLessThan(Date value) {
            addCriterion("BORWSTARTTIME <", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeLessThanOrEqualTo(Date value) {
            addCriterion("BORWSTARTTIME <=", value, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeIn(List<Date> values) {
            addCriterion("BORWSTARTTIME in", values, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeNotIn(List<Date> values) {
            addCriterion("BORWSTARTTIME not in", values, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeBetween(Date value1, Date value2) {
            addCriterion("BORWSTARTTIME between", value1, value2, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwstarttimeNotBetween(Date value1, Date value2) {
            addCriterion("BORWSTARTTIME not between", value1, value2, "borwstarttime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeIsNull() {
            addCriterion("BORWENDTIME is null");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeIsNotNull() {
            addCriterion("BORWENDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeEqualTo(Date value) {
            addCriterion("BORWENDTIME =", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeNotEqualTo(Date value) {
            addCriterion("BORWENDTIME <>", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeGreaterThan(Date value) {
            addCriterion("BORWENDTIME >", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("BORWENDTIME >=", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeLessThan(Date value) {
            addCriterion("BORWENDTIME <", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeLessThanOrEqualTo(Date value) {
            addCriterion("BORWENDTIME <=", value, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeIn(List<Date> values) {
            addCriterion("BORWENDTIME in", values, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeNotIn(List<Date> values) {
            addCriterion("BORWENDTIME not in", values, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeBetween(Date value1, Date value2) {
            addCriterion("BORWENDTIME between", value1, value2, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andBorwendtimeNotBetween(Date value1, Date value2) {
            addCriterion("BORWENDTIME not between", value1, value2, "borwendtime");
            return (Criteria) this;
        }

        public Criteria andExceeddaysIsNull() {
            addCriterion("EXCEEDDAYS is null");
            return (Criteria) this;
        }

        public Criteria andExceeddaysIsNotNull() {
            addCriterion("EXCEEDDAYS is not null");
            return (Criteria) this;
        }

        public Criteria andExceeddaysEqualTo(Integer value) {
            addCriterion("EXCEEDDAYS =", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysNotEqualTo(Integer value) {
            addCriterion("EXCEEDDAYS <>", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysGreaterThan(Integer value) {
            addCriterion("EXCEEDDAYS >", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("EXCEEDDAYS >=", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysLessThan(Integer value) {
            addCriterion("EXCEEDDAYS <", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysLessThanOrEqualTo(Integer value) {
            addCriterion("EXCEEDDAYS <=", value, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysIn(List<Integer> values) {
            addCriterion("EXCEEDDAYS in", values, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysNotIn(List<Integer> values) {
            addCriterion("EXCEEDDAYS not in", values, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysBetween(Integer value1, Integer value2) {
            addCriterion("EXCEEDDAYS between", value1, value2, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andExceeddaysNotBetween(Integer value1, Integer value2) {
            addCriterion("EXCEEDDAYS not between", value1, value2, "exceeddays");
            return (Criteria) this;
        }

        public Criteria andHandletypeIsNull() {
            addCriterion("HANDLETYPE is null");
            return (Criteria) this;
        }

        public Criteria andHandletypeIsNotNull() {
            addCriterion("HANDLETYPE is not null");
            return (Criteria) this;
        }

        public Criteria andHandletypeEqualTo(Integer value) {
            addCriterion("HANDLETYPE =", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeNotEqualTo(Integer value) {
            addCriterion("HANDLETYPE <>", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeGreaterThan(Integer value) {
            addCriterion("HANDLETYPE >", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("HANDLETYPE >=", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeLessThan(Integer value) {
            addCriterion("HANDLETYPE <", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeLessThanOrEqualTo(Integer value) {
            addCriterion("HANDLETYPE <=", value, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeIn(List<Integer> values) {
            addCriterion("HANDLETYPE in", values, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeNotIn(List<Integer> values) {
            addCriterion("HANDLETYPE not in", values, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeBetween(Integer value1, Integer value2) {
            addCriterion("HANDLETYPE between", value1, value2, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandletypeNotBetween(Integer value1, Integer value2) {
            addCriterion("HANDLETYPE not between", value1, value2, "handletype");
            return (Criteria) this;
        }

        public Criteria andHandleresultIsNull() {
            addCriterion("HANDLERESULT is null");
            return (Criteria) this;
        }

        public Criteria andHandleresultIsNotNull() {
            addCriterion("HANDLERESULT is not null");
            return (Criteria) this;
        }

        public Criteria andHandleresultEqualTo(Integer value) {
            addCriterion("HANDLERESULT =", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultNotEqualTo(Integer value) {
            addCriterion("HANDLERESULT <>", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultGreaterThan(Integer value) {
            addCriterion("HANDLERESULT >", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultGreaterThanOrEqualTo(Integer value) {
            addCriterion("HANDLERESULT >=", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultLessThan(Integer value) {
            addCriterion("HANDLERESULT <", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultLessThanOrEqualTo(Integer value) {
            addCriterion("HANDLERESULT <=", value, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultIn(List<Integer> values) {
            addCriterion("HANDLERESULT in", values, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultNotIn(List<Integer> values) {
            addCriterion("HANDLERESULT not in", values, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultBetween(Integer value1, Integer value2) {
            addCriterion("HANDLERESULT between", value1, value2, "handleresult");
            return (Criteria) this;
        }

        public Criteria andHandleresultNotBetween(Integer value1, Integer value2) {
            addCriterion("HANDLERESULT not between", value1, value2, "handleresult");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andHandlestaffIsNull() {
            addCriterion("HANDLESTAFF is null");
            return (Criteria) this;
        }

        public Criteria andHandlestaffIsNotNull() {
            addCriterion("HANDLESTAFF is not null");
            return (Criteria) this;
        }

        public Criteria andHandlestaffEqualTo(Integer value) {
            addCriterion("HANDLESTAFF =", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffNotEqualTo(Integer value) {
            addCriterion("HANDLESTAFF <>", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffGreaterThan(Integer value) {
            addCriterion("HANDLESTAFF >", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("HANDLESTAFF >=", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffLessThan(Integer value) {
            addCriterion("HANDLESTAFF <", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffLessThanOrEqualTo(Integer value) {
            addCriterion("HANDLESTAFF <=", value, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffIn(List<Integer> values) {
            addCriterion("HANDLESTAFF in", values, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffNotIn(List<Integer> values) {
            addCriterion("HANDLESTAFF not in", values, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffBetween(Integer value1, Integer value2) {
            addCriterion("HANDLESTAFF between", value1, value2, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andHandlestaffNotBetween(Integer value1, Integer value2) {
            addCriterion("HANDLESTAFF not between", value1, value2, "handlestaff");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}